/* 定义全局混入 */

// 超出隐藏
@mixin line-clamp($num: 1) {
  overflow: hidden;
  text-overflow: ellipsis;

  @if ($num == 1) {
    white-space: nowrap;
  } @else {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    -webkit-line-clamp: $num;
  }
}

@mixin line-height($height) {
  line-height: $height;
  height: $height;
}
